package com.yzt.plugin_network.response;

import com.yzt.plugin_network.excep.HttpErrorMsg;

/**
 * author : bob
 * date   : 2022/11/29
 * desc   :
 */
public class AresException extends RuntimeException {

    public int status;

    public String info;

    public HttpResponse response;

    public AresException(HttpResponse httpResponse) {
        response = httpResponse;
        status = response.code;
        info = HttpErrorMsg.getErrorMessage(status, response.msg);
    }
}
